home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / uemacs-3.000 / uemacs-3 / uemacs-3.8 / edef.h,v < prev    next >
Encoding:
Text File  |  1995-09-22  |  8.5 KB  |  212 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     moss:1.1; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.1
  10. date    95.09.22.23.37.32;    author moss;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19. 1.1
  20. log
  21. @Initial revision
  22. @
  23. text
  24. @/*    EDEF:        Global variable definitions for
  25.             MicroEMACS 3.2
  26.  
  27.             written by Dave G. Conroy
  28.             modified by Steve Wilhite, George Jones
  29.             greatly modified by Daniel Lawrence
  30. */
  31.  
  32. /* some global fuction declarations */
  33.  
  34. char *malloc();
  35. char *strcpy();
  36. char *strcat();
  37. char *strncpy();
  38. char *itoa();
  39. char *getval();
  40. char *gtenv();
  41. char *gtusr();
  42. char *gtfun();
  43. char *token();
  44. char *ltos();
  45. char *flook();
  46.  
  47. #ifdef    maindef
  48.  
  49. /* for MAIN.C */
  50.  
  51. /* initialized global definitions */
  52.  
  53. int     fillcol = 72;                   /* Current fill column          */
  54. short   kbdm[NKBDM];            /* Macro                        */
  55. char    pat[NPAT];                      /* Search pattern        */
  56. char    rpat[NPAT];            /* replacement pattern        */
  57. char    *execstr = NULL;        /* pointer to string to execute    */
  58. char    golabel[NPAT] = "";        /* current line to go to    */
  59. int    execlevel = 0;            /* execution IF level        */
  60. int    eolexist = TRUE;        /* does clear to EOL exist    */
  61. int    revexist = FALSE;        /* does reverse video exist?    */
  62. int    flickcode = FALSE;        /* do flicker supression?    */
  63. char    *modename[] = {            /* name of modes        */
  64.     "WRAP", "CMODE", "SPELL", "EXACT", "VIEW", "OVER", "MAGIC", "CRYPT"};
  65. char    modecode[] = "WCSEVOMY";    /* letters to represent modes    */
  66. int    gmode = 0;            /* global editor mode        */
  67. int    gfcolor = 7;            /* global forgrnd color (white)    */
  68. int    gbcolor    = 0;            /* global backgrnd color (black)*/
  69. int     sgarbf  = TRUE;                 /* TRUE if screen is garbage    */
  70. int     mpresf  = FALSE;                /* TRUE if message in last line */
  71. int    clexec    = FALSE;        /* command line execution flag    */
  72. int    mstore    = FALSE;        /* storing text to macro flag    */
  73. struct    BUFFER *bstore = NULL;        /* buffer to store macro text to*/
  74. int     vtrow   = 0;                    /* Row location of SW cursor */
  75. int     vtcol   = 0;                    /* Column location of SW cursor */
  76. int     ttrow   = HUGE;                 /* Row location of HW cursor */
  77. int     ttcol   = HUGE;                 /* Column location of HW cursor */
  78. int    lbound    = 0;            /* leftmost column of current line
  79.                        being displayed */
  80. int    taboff    = 0;            /* tab offset for display    */
  81. int    metac = CTRL | '[';        /* current meta character */
  82. int    ctlxc = CTRL | 'X';        /* current control X prefix char */
  83. int    reptc = CTRL | 'U';        /* current universal repeat char */
  84. int    abortc = CTRL | 'G';        /* current abort command char    */
  85.  
  86. int    quotec = 0x11;            /* quote char during mlreply() */
  87. char    *cname[] = {            /* names of colors        */
  88.     "BLACK", "RED", "GREEN", "YELLOW", "BLUE",
  89.     "MAGENTA", "CYAN", "WHITE"};
  90. KILL *kbufp  = NULL;        /* current kill buffer chunk pointer    */
  91. KILL *kbufh  = NULL;        /* kill buffer header pointer        */
  92. int kused = KBLOCK;        /* # of bytes used in kill buffer    */
  93. WINDOW *swindow = NULL;        /* saved window pointer            */
  94. int cryptflag = FALSE;        /* currently encrypting?        */
  95. short    *kbdptr;        /* current position in keyboard buf */
  96. short    *kbdend = &kbdm[0];    /* ptr to end of the keyboard */
  97. int    kbdmode = STOP;        /* current keyboard macro mode    */
  98. int    kbdrep = 0;        /* number of repetitions    */
  99. int    restflag = FALSE;    /* restricted use?        */
  100. long    envram = 0l;    /* # of bytes current in use by malloc */
  101. int    macbug = FALSE;        /* macro debuging flag        */
  102. char    errorm[] = "ERROR";    /* error literal        */
  103. char    truem[] = "TRUE";    /* true literal            */
  104. char    falsem[] = "FALSE";    /* false litereal        */
  105. int    cmdstatus = TRUE;    /* last command status        */
  106.  
  107. /* uninitialized global definitions */
  108.  
  109. int     currow;                 /* Cursor row                   */
  110. int     curcol;                 /* Cursor column                */
  111. int     thisflag;               /* Flags, this command          */
  112. int     lastflag;               /* Flags, last command          */
  113. int     curgoal;                /* Goal for C-P, C-N            */
  114. WINDOW  *curwp;                 /* Current window               */
  115. BUFFER  *curbp;                 /* Current buffer               */
  116. WINDOW  *wheadp;                /* Head of list of windows      */
  117. BUFFER  *bheadp;                /* Head of list of buffers      */
  118. BUFFER  *blistp;                /* Buffer for C-X C-B           */
  119.  
  120. BUFFER  *bfind();               /* Lookup a buffer by name      */
  121. WINDOW  *wpopup();              /* Pop up window creation       */
  122. LINE    *lalloc();              /* Allocate a line              */
  123. char    sres[NBUFN];        /* current screen resolution    */
  124.  
  125. #else
  126.  
  127. /* for all the other .C files */
  128.  
  129. /* initialized global external declarations */
  130.  
  131. extern  int     fillcol;                /* Fill column                  */
  132. extern  short   kbdm[];                 /* Holds kayboard macro data    */
  133. extern  char    pat[];                  /* Search pattern               */
  134. extern    char    rpat[];            /* Replacement pattern        */
  135. extern    char    *execstr;        /* pointer to string to execute    */
  136. extern    char    golabel[];        /* current line to go to    */
  137. extern    int    execlevel;        /* execution IF level        */
  138. extern    int    eolexist;        /* does clear to EOL exist?    */
  139. extern    int    revexist;        /* does reverse video exist?    */
  140. extern    int    flickcode;        /* do flicker supression?    */
  141. extern    char *modename[];        /* text names of modes        */
  142. extern    char    modecode[];        /* letters to represent modes    */
  143. extern    KEYTAB keytab[];        /* key bind to functions table    */
  144. extern    NBIND names[];            /* name to function table    */
  145. extern    int    gmode;            /* global editor mode        */
  146. extern    int    gfcolor;        /* global forgrnd color (white)    */
  147. extern    int    gbcolor;        /* global backgrnd color (black)*/
  148. extern  int     sgarbf;                 /* State of screen unknown      */
  149. extern  int     mpresf;                 /* Stuff in message line        */
  150. extern    int    clexec;            /* command line execution flag    */
  151. extern    int    mstore;            /* storing text to macro flag    */
  152. extern    struct    BUFFER *bstore;        /* buffer to store macro text to*/
  153. extern    int     vtrow;                  /* Row location of SW cursor */
  154. extern    int     vtcol;                  /* Column location of SW cursor */
  155. extern    int     ttrow;                  /* Row location of HW cursor */
  156. extern    int     ttcol;                  /* Column location of HW cursor */
  157. extern    int    lbound;            /* leftmost column of current line
  158.                        being displayed */
  159. extern    int    taboff;            /* tab offset for display    */
  160. extern    int    metac;            /* current meta character */
  161. extern    int    ctlxc;            /* current control X prefix char */
  162. extern    int    reptc;            /* current universal repeat char */
  163. extern    int    abortc;            /* current abort command char    */
  164.  
  165. extern    int    quotec;            /* quote char during mlreply() */
  166. extern    char    *cname[];        /* names of colors        */
  167. extern KILL *kbufp;            /* current kill buffer chunk pointer */
  168. extern KILL *kbufh;            /* kill buffer header pointer    */
  169. extern int kused;            /* # of bytes used in KB        */
  170. extern WINDOW *swindow;            /* saved window pointer        */
  171. extern int cryptflag;            /* currently encrypting?    */
  172. extern    short    *kbdptr;        /* current position in keyboard buf */
  173. extern    short    *kbdend;        /* ptr to end of the keyboard */
  174. extern    int kbdmode;            /* current keyboard macro mode    */
  175. extern    int kbdrep;            /* number of repetitions    */
  176. extern    int restflag;            /* restricted use?        */
  177. extern    long envram;        /* # of bytes current in use by malloc */
  178. extern    int    macbug;            /* macro debuging flag        */
  179. extern    char    errorm[];        /* error literal        */
  180. extern    char    truem[];        /* true literal            */
  181. extern    char    falsem[];        /* false litereal        */
  182. extern    int    cmdstatus;        /* last command status        */
  183.  
  184. /* uninitialized global external declarations */
  185.  
  186. extern  int     currow;                 /* Cursor row                   */
  187. extern  int     curcol;                 /* Cursor column                */
  188. extern  int     thisflag;               /* Flags, this command          */
  189. extern  int     lastflag;               /* Flags, last command          */
  190. extern  int     curgoal;                /* Goal for C-P, C-N            */
  191. extern  WINDOW  *curwp;                 /* Current window               */
  192. extern  BUFFER  *curbp;                 /* Current buffer               */
  193. extern  WINDOW  *wheadp;                /* Head of list of windows      */
  194. extern  BUFFER  *bheadp;                /* Head of list of buffers      */
  195. extern  BUFFER  *blistp;                /* Buffer for C-X C-B           */
  196.  
  197. extern  BUFFER  *bfind();               /* Lookup a buffer by name      */
  198. extern  WINDOW  *wpopup();              /* Pop up window creation       */
  199. extern  LINE    *lalloc();              /* Allocate a line              */
  200. extern    char    sres[NBUFN];        /* current screen resolution    */
  201.  
  202. #endif
  203.  
  204. /* terminal table defined only in TERM.C */
  205.  
  206. #ifndef    termdef
  207. extern  TERM    term;                   /* Terminal information.        */
  208. #endif
  209.  
  210.  
  211. @
  212.